package com.example.mybatisplusdemo.model.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;

import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author lxp
 * @since 2025-07-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("c_merchant_post")
@ApiModel(value="MerchantPost对象", description="")
public class MerchantPost implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("store_id")
    private Long storeId;

    @TableField("post_type")
    private String postType;

    @TableField("title")
    private String title;

    @TableField("content_text")
    private String contentText;

//    @TableField("media_urls")
    @TableField(value = "media_urls", typeHandler = JacksonTypeHandler.class)
    private List<String> mediaUrls;

    @TableField("visibility")
    private String visibility;

    @TableField("published_at")
    private LocalDate publishedAt;

    @TableField("is_deleted")
        @TableLogic
    private Boolean deleted;


}
